package com.maduixa.guitar.tabsearch.spring.to;

import java.text.SimpleDateFormat;
import java.util.Date;


public class ListUsersTO {

	private String username;
	private String mail;
	private boolean admin;
	private Date dataAlta;
	private long level0;
	private long level1;
	private long level2;
	private long level3;
	private long level4;
	private long level5;
	
	
	/*
	 * Constructors
	 */
	
	public ListUsersTO() {
		super();
	}


	public ListUsersTO(String username, String mail, boolean admin, Date dataAlta) {
		super();
		this.username = username;
		this.mail = mail;
		this.admin = admin;
		this.dataAlta = dataAlta;
	}
	
	
	/*
	 * Getters & Setters
	 */

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public Date getDataAlta() {
		return dataAlta;
	}

	public void setDataAlta(Date dataAlta) {
		this.dataAlta = dataAlta;
	}
	
	public String getDataAltaStr() {
		SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
		return sdf.format(dataAlta);
	}

	public long getLevel0() {
		return level0;
	}

	public void setLevel0(long level0) {
		this.level0 = level0;
	}
	
	public long getLevel1() {
		return level1;
	}

	public void setLevel1(long level1) {
		this.level1 = level1;
	}

	public long getLevel2() {
		return level2;
	}

	public void setLevel2(long level2) {
		this.level2 = level2;
	}

	public long getLevel3() {
		return level3;
	}

	public void setLevel3(long level3) {
		this.level3 = level3;
	}

	public long getLevel4() {
		return level4;
	}

	public void setLevel4(long level4) {
		this.level4 = level4;
	}

	public long getLevel5() {
		return level5;
	}

	public void setLevel5(long level5) {
		this.level5 = level5;
	}
		
}
